package com.haixue.android.academy.activity;

import android.academy.haixue.com.haixue.R;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.view.ViewPager;

import com.haixue.android.academy.adapter.NavigationAdapter;
import com.haixue.android.academy.fragment.NaviagtionFragment;

import butterknife.InjectView;

public class NavigationActivity extends BaseLoginActivity implements NaviagtionFragment.OnFragmentInteractionListener{
    @InjectView(R.id.navigation_pager)
    ViewPager navigation_pager;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_navigation);
    }

    @Override
    protected void initDatas() {
        super.initDatas();
        FragmentManager fm = getSupportFragmentManager();

        NavigationAdapter pagerAdapter = new NavigationAdapter(fm);

        navigation_pager.setAdapter(pagerAdapter);
    }

    @Override
    public void onClickLogin() {
        sp.setNotShowNavigation();
        super.toLoginActivity();
    }
}
